var a = 'age';
var b = 'age';
var obj = {
    name: '张三',
    age: 18
};
var c = 'age';
function isUser(value) {
    return typeof value === "object" && value !== null
        && "id" in value && "name" in value;
}
console.log(isUser({ id: 1, name: 'qq' }));
